import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { ChakraProvider, theme, CSSReset } from '@chakra-ui/react'
import './components/styles.css'

// 1. 设置默认颜色模式
// theme.config.initialColorMode = 'dark'

// 2. 使用操作系统所使用的颜色模式
// theme.config.useSystemColorMode = true

ReactDOM.render(
  <React.StrictMode>
    <ChakraProvider theme={theme}>
      <CSSReset />
      <App />
    </ChakraProvider>
  </React.StrictMode>,
  document.getElementById('root')
);
